package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TStudentGrantMapper;
import com.ruoyi.system.domain.TStudentGrant;
import com.ruoyi.system.service.ITStudentGrantService;

/**
 * 奖助学金情况Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-06
 */
@Service
public class TStudentGrantServiceImpl implements ITStudentGrantService 
{
    @Autowired
    private TStudentGrantMapper tStudentGrantMapper;

    /**
     * 查询奖助学金情况
     * 
     * @param id 奖助学金情况主键
     * @return 奖助学金情况
     */
    @Override
    public TStudentGrant selectTStudentGrantById(Long id)
    {
        return tStudentGrantMapper.selectTStudentGrantById(id);
    }

    /**
     * 查询奖助学金情况列表
     * 
     * @param tStudentGrant 奖助学金情况
     * @return 奖助学金情况
     */
    @Override
    public List<TStudentGrant> selectTStudentGrantList(TStudentGrant tStudentGrant)
    {
        return tStudentGrantMapper.selectTStudentGrantList(tStudentGrant);
    }

    /**
     * 新增奖助学金情况
     * 
     * @param tStudentGrant 奖助学金情况
     * @return 结果
     */
    @Override
    public int insertTStudentGrant(TStudentGrant tStudentGrant)
    {
        return tStudentGrantMapper.insertTStudentGrant(tStudentGrant);
    }

    /**
     * 修改奖助学金情况
     * 
     * @param tStudentGrant 奖助学金情况
     * @return 结果
     */
    @Override
    public int updateTStudentGrant(TStudentGrant tStudentGrant)
    {
        return tStudentGrantMapper.updateTStudentGrant(tStudentGrant);
    }

    /**
     * 批量删除奖助学金情况
     * 
     * @param ids 需要删除的奖助学金情况主键
     * @return 结果
     */
    @Override
    public int deleteTStudentGrantByIds(Long[] ids)
    {
        return tStudentGrantMapper.deleteTStudentGrantByIds(ids);
    }

    /**
     * 删除奖助学金情况信息
     * 
     * @param id 奖助学金情况主键
     * @return 结果
     */
    @Override
    public int deleteTStudentGrantById(Long id)
    {
        return tStudentGrantMapper.deleteTStudentGrantById(id);
    }
}
